//main.js


//解构出创建方法 createApp
import { createApp } from 'vue'

//导入根组件
import App from './App.vue'

//导入路由配置++++++++++++++++++++++++++++++++++++++++++++++++
import router from './router'

//导入全局状态store
import store from '@/store/index'

//导入格式化样式文件
import 'normalize.css/normalize.css'

// 导入全局样式,否则反馈组件会没有样式
import 'element-plus/dist/index.css'






//通过App组件创建一个 app 实例
const app = createApp(App)


//路由挂载到app实例中++++++++++++++++++++++++++++++++++++++++

app.use(router)

//挂载store
app.use(store) 




//将app实例挂载到id为app的元素上
app.mount('#app')
 